package com.jisf.driver.service;

import com.jisf.driver.entity.po.Examine;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jisf.driver.entity.vo.ExamineListRequestVo;
import com.jisf.driver.entity.vo.ExamineListResponseVo;
import com.jisf.driver.entity.vo.ExamineVo;
import com.jisf.driver.entity.vo.StudentExamineResponseVo;
import com.jisf.driver.response.ResultCode;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jisf
 * @since 2022-05-10
 */
public interface IExamineService extends IService<Examine> {

    /**
     * 获取考试列表
     * @param examineListRequestVo
     * @return
     */
    ExamineListResponseVo getExamineList(ExamineListRequestVo examineListRequestVo);

    /**
     * 获取已预约考试列表
     * @return
     */
    List<StudentExamineResponseVo> getExamineAppointList();

    /**
     * 教练获取分配的考试列表
     * @return
     */
    List<Examine> getExamineAllotList();

    /**
     * 新增考试
     * @param examineVo
     * @return
     */
    ResultCode addExamine(ExamineVo examineVo);

    /**
     *  更新考试状态
     */
    void updateExamineStage();

    /**
     * 结束报名
     * @param id
     * @return
     */
    ResultCode finishAppoint(Integer id);



}
